package com.glasses.entity;

import com.glasses.orm.base.BaseBean;
import com.glasses.orm.dictionary.ExpressStatus;
import com.glasses.orm.dictionary.Status;

/**
 * 订单
 * Created by ashin on 2018/8/9.
 */
public class Order extends BaseBean {

    /**
     * 订单id
     */
    private String orderId;

    /**
     * 用户id
     */
    private String openId;

    /**
     * 昵称
     */
    private String nickName;

    /**
     * 订单状态
     */
    private int status;

    /**
     * 商品
     */
    private Commodity commodity;

    /**
     * 实际花费
     */
    private String cost;

    /**
     * 商品id
     */
    private String commodityId;

    /**
     * 返还积分
     */
    private Double backIndent;

    /**
     * 花费积分
     */
    private String costIndent;

    /**
     * 订单状态 - 中文
     */
    private String statusVal;

    /**
     * 快递状态
     */
    private String expressStatus;

    /**
     * 快递状态 中文
     */
    private String expressStatusVal;

    /**
     * 购买时原价
     */
    private String currentCost;

    /**
     * 订单价格
     */
    private int amount;

    /**
     * 地址信息
     */
    private String addrInfo;

    /**
     * 额外参数
     */
    private String extra;

    /**
     * 商品额外信息
     */
    private String commodityExtra;

    public String getCommodityExtra() {
        return commodityExtra;
    }

    public void setCommodityExtra(String commodityExtra) {
        this.commodityExtra = commodityExtra;
    }

    public String getExtra() {
        return extra;
    }

    public void setExtra(String extra) {
        this.extra = extra;
    }

    public String getAddrInfo() {
        return addrInfo;
    }

    public void setAddrInfo(String addrInfo) {
        this.addrInfo = addrInfo;
    }

    public String getCostIndent() {
        return costIndent;
    }

    public void setCostIndent(String costIndent) {
        this.costIndent = costIndent;
    }

    public String getCurrentCost() {
        return currentCost;
    }

    public void setCurrentCost(String currentCost) {
        this.currentCost = currentCost;
    }

    public String getCost() {
        return cost;
    }

    public void setCost(String cost) {
        this.cost = cost;
    }

    public String getExpressStatusVal() {
        return getEnumKey(ExpressStatus.class,expressStatus);
    }

    public void setExpressStatusVal(String expressStatusVal) {
        this.expressStatusVal = expressStatusVal;
    }

    public String getExpressStatus() {
        return expressStatus;
    }

    public void setExpressStatus(String expressStatus) {
        this.expressStatus = expressStatus;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public Double getBackIndent() {
        return backIndent;
    }

    public void setBackIndent(Double backIndent) {
        this.backIndent = backIndent;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getStatusVal() {
        return getEnumKey(Status.class, String.valueOf(status));
    }

    public void setStatusVal(String statusVal) {
        this.statusVal = statusVal;
    }
}
